<template>
  <el-tag :type="statusEnum[status].type">
    {{ statusEnum[status].txt }}
  </el-tag>
</template>
<script>
export default {
  name: "StatusTag",
  props: {
    status: {
      type: String,
      default: '0'
    },
    statusEnum: {
      type: Object,
      default: function () {
        return {
          '0': {
            type: 'success',
            txt: '正常'
          },
          '1': {
            type: 'danger',
            txt: '停用'
          }
        }
      }
    }
  },
  data() {
    return {
    }
  },
}
</script>
<style scoped>

</style>
